package com.anolesoft.yr.mbus.crm.service;

import com.anolesoft.yr.mbus.crm.dto.CrmBaseDTO;
import com.anolesoft.yr.util.PageData;

import java.util.List;
import java.util.Optional;

/**
 * @author zhj
 * @date 2020/8/9 9:46
 */
public interface CrmBaseService {
    int create(CrmBaseDTO crmBaseDTO);

    int modify(CrmBaseDTO crmBaseDTO);

    int remove(String id);
    int removeBatch(List<String> ids);

    List<CrmBaseDTO> selectAll();

    PageData<List<CrmBaseDTO>> selectAll(Integer limit, Integer curr);

    Optional<CrmBaseDTO> selectOneById(String id);

    List<CrmBaseDTO> selectList(CrmBaseDTO crmBaseDTO);

    PageData<List<CrmBaseDTO>> selectList(CrmBaseDTO crmBaseDTO, Integer limit, Integer curr);

    PageData<List<CrmBaseDTO>> selectComboxList(CrmBaseDTO crmBaseDTO, Integer limit, Integer curr);
}

